//
//  LZFTuiJianUserCell.m
//  LZFBuDieJie
//
//  Created by 梁梓烽 on 16/7/19.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

#import "LZFTuiJianUserCell.h"
#import "UIImageView+XMGExtension.h"
#import "LZFTuiJianUserItem.h"

@interface LZFTuiJianUserCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageVIew;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;


@end
@implementation LZFTuiJianUserCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setUserItem:(LZFTuiJianUserItem *)tuiJianUserItem
{
    _tuiJIanUserItem=tuiJianUserItem;
    //icon
    [self.iconImageVIew setHeader:tuiJianUserItem.header];
    //name
    self.nameLabel.text=tuiJianUserItem.screen_name;
    //content
    self.contentLabel.text=[NSString stringWithFormat:@"%zd",tuiJianUserItem.fans_count];
    


}
@end
